package com.yonyougov.devops.monitor.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.util.Date;

@Data
@Document(indexName = "monitor_info_net_interface", type = "net_interface")
public class NetInterface {
    @Id
    private Long id;
    @Field
    private String ip;
    @Field
    private String name;
    @Field
    private String hostname;
    @Field
    private Date date;
}
